package com.htjc.uep.center.model.enums;

public enum BusinessType {

	APPLY_PLATFORM("0101", "合作平台申请业务"),
	APPLY_ADD_POOL("0201", "积分发行申请业务"),
	APPLY_LOCK_POOL("0202", "积分池冻结申请业务"),
	APPLY_PAYOUT_POINTS("0301", "积分派发申请业务"),
	APPLY_DEDUCTION_POINT("0302", "积分扣减申请业务"),
	APPLY_QUERY_POOL("0401", "积分池查询业务"),
	
	
	APPLY_PLATFORM_NO("BUS-000001", "合作平台申请业务"),
	APPLY_ADD_POOL_NO("BUS-000002", "积分发行申请业务"),
	APPLY_LOCK_POOL_NO("BUS-000003", "积分池冻结申请业务"),
	APPLY_PAYOUT_POINTS_NO("BUS-000004", "积分派发申请业务"),
	
	ADD_PLATFORM("HZPTXZ-000001", "合作平台申请业务"),
	AUDIT_PLATFORM_01("HZPTXZ-000002", "合作平台初审业务"),
	AUDIT_PLATFORM_02("HZPTXZ-000003", "合作平台复审业务"),
	
	ADD_POOL("JFSX-000001", "积分发行申请"),
	AUDIT_ADD_POOL_01("JFSX-000002", "积分发行初审"),
	AUDIT_ADD_POOL_02("JFSX-000003", "积分发行复审"),
	
	LOCK_POOL("JFDJ-000001", "积分冻结申请"),
	AUDIT_LOCK_POOL_01("JFDJ-000001", "积分冻结初审"),
	AUDIT_LOCK_POOL_02("JFDJ-000001", "积分冻结复审");
	
	private String type;
	
	private String value;
	
	private BusinessType(String type, String value) {
		this.type = type;
		this.value = value;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	public static BusinessType getType(String type) {
		//遍历枚举类型
		for(BusinessType businessType : values()) {
			if (type != null && businessType.type.equals(type)) {
				return businessType;
			}
		}
		return null;
	}
}



















